package pri.black.garden.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("garden_item")
public class GardenItem {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("garden_name")
    private String gardenName;

    @TableField("item_name")
    private String itemName;

    /**
     * 单价
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 来源
     */
    @TableField("source")
    private String source;

    /**
     * 数量
     */
    @TableField("amount")
    private BigDecimal amount;


    /**
     * 消耗
     */
    @TableField("consume")
    private BigDecimal consume;

    /**
     * 单位
     */
    @TableField("unit")
    private String unit;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableLogic(value = "0",delval = "1")
    @TableField("del_flag")
    private Integer delFlag;
}
